.alerts {
  position: absolute;
  overflow: hidden;
  width: 350px;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.alert {
  margin: 1rem;
}

/* Avoid empty bottom space on record validation errors */
.alert ul {
  margin-top: 0;
  margin-bottom: 0;
}

.item-enter {
  opacity: 0;
}
.item-enter-active {
  opacity: 1;
  transition: opacity 500ms ease-in;
}
.item-exit {
  opacity: 1;
}
.item-exit-active {
  opacity: 0;
  transition: transform 500ms ease-in, opacity 500ms ease-in;
  transform: translateX(100%);
}

.rtl.alerts {
  right: inherit;
  left: 0;
}

.rtl .item-exit-active {
  transform: translateX(-100%);
}
